<?php


namespace App\Enum;


class APIEnum
{

    /*通用错误*/
    const ERR = ['code' => 403, 'msg' => '处理异常'];
    /*一般成功返回*/
    const SUCCESS = ['code' => 0, 'msg' => 'success'];
    /*登录已失效*/
    const LOGIN_EXPIRE = ['code' => 402, 'msg' => '登录已失效'];
    /*未登录*/
    const LOGIN_VOID = ['code' => 401, 'msg' => '请登录'];
    /*非系统用户登录*/
    const LOGIN_NOT_ADMIN = ['code' => 400, 'msg' => '您没有当前系统权限哦~'];
    /*无数据操作/可读权限*/
    const AUTHORIZE = ['code' => 404, 'msg' => '您没有当前模块操作权限'];

}





/**
 * HttpEnum.php
 *
 * 说明:
 *
 * 修改历史
 * ----------------------------------------
 * 2021/3/8 15:03:00   操作:创建
 **/
